<?php

namespace app\company\model;

use app\common\model\BaseModel;
use app\common\model\DealerGoods;
use app\common\model\DealerGoodsSpec;
use think\model\relation\BelongsTo;

class CheckStockDetail extends BaseModel
{
    public function goods():BelongsTo
    {
        return $this->belongsTo(DealerGoods::class , 'dealer_goods_id' , 'id');
    }

    public function spec():BelongsTo
    {
        return $this->belongsTo(DealerGoodsSpec::class , 'dealer_goods_spec_id' , 'id');
    }
}